package com.whfp.coky.ui.task.vm

import androidx.lifecycle.MutableLiveData
import com.whfp.coky.ble.BleController
import com.whfp.coky.databinding.ActivityWzxBinding
import com.whfp.coky.ui.base.BaseViewModel

/**
 *
 *
 * created by coky on 2022/3/1
 */
class PhyEviBoxVM: BaseViewModel<ActivityWzxBinding>() {

    var result = MutableLiveData<String>()

    var BC: BleController? = null//蓝牙控制器

//    var toConnLD = MutableLiveData(false)//开启/断开连接
//
//    override fun observe(activity: BaseActivity<*, *>, owner: LifecycleOwner) {
//        super.observe(activity, owner)
//        toConnLD.observe(owner, Observer {
//            if (it) {
////                启动连接流程
//                ScanCodeAct.start(activity, Constants.DEV_TYPE_RFID, null)//需要携带意图
//            } else {
////                启动断开操作
//            }
//        })
//    }

    /**
     * 设备连接act入口
     */
    fun connDev() {
        BC?.isBleOpend(BleController.DEV_TYPE.DEV)
    }

   fun doActivation(){
//        跳转扫码
   }

    fun doLocation(){

    }
}